#!/usr/bin/env bash

source scripts/_var.sh
source scripts/_fn.sh

BINARY_FILE=$REPO_DIR/$PROC.$BIN.$HASH.testbin
TAGS="integration $TAGS"

mkdir -p "$REPO_DIR"

trace_on
  go test -o "$BINARY_FILE" -tags "${TAGS[@]}" "${OPTS[@]}" -c "./internal/test"
  cp "$BINARY_FILE" "$REPO_DIR/$PROC.$BIN.testbin"
trace_off
